package com.zrwl.poscloud.xo.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zrwl.poscloud.base.entity.Sequence;
import com.zrwl.poscloud.base.superI.SuperService;
import com.zrwl.poscloud.xo.vo.SequenceVO;

import java.util.List;

/**
 * 黑名单序号 服务类
 *
 * @author 刘思童 AutoGenerate
 * @date 2021-07-12
 */
public interface SequenceService extends SuperService<Sequence> {

    public IPage<Sequence> getPageList(SequenceVO sequenceVO);

    public List<Sequence> getAllList(SequenceVO sequenceVO);

    public String add(SequenceVO sequenceVO);

    public String edit(SequenceVO sequenceVO);

    public String delete(SequenceVO sequenceVO);

    public Sequence customizeSelect(SequenceVO sequenceVO);

    public Sequence customizeSelect(int ownerType, String ownerUid, int codeType);

    public Sequence customizeSelect(SequenceVO sequenceVO, String purpose);

    public String generateSerialCode(Sequence sequence);

    public String generateNumber(Sequence sequence);

    public String createVariousCode(Integer type) throws Exception;

    public String createVariousCode(String ownerUid, Integer ownerType, Integer type) throws Exception;

    public Integer getVariousCode(String ownerUid, Integer ownerType, Integer type) throws Exception;

}
